package com.cloud.base.client.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cloud.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统资源-功能操作
 *
 * @author wwkk
 * @date 2019-07-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_action")
@ApiModel(value="BaseAction对象", description="系统资源-功能操作")
public class BaseAction extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "资源ID")
    @TableId(value = "action_id", type = IdType.ID_WORKER)
    private Long actionId;

    @ApiModelProperty(value = "资源编码")
    private String actionCode;

    @ApiModelProperty(value = "资源名称")
    private String actionName;

    @ApiModelProperty(value = "资源描述")
    private String actionDesc;

    @ApiModelProperty(value = "资源父节点")
    private Long menuId;

    @ApiModelProperty(value = "优先级 越小越靠前")
    private Integer priority;

    @ApiModelProperty(value = "状态:0-无效 1-有效")
    private Integer status;

    @ApiModelProperty(value = "保留数据0-否 1-是 不允许删除")
    private Integer isPersist;

    @ApiModelProperty(value = "服务名称")
    private String serviceId;


}
